<?php
App::uses('AppModel', 'Model');
/**
 * CartaCategoria Model
 *
 * @property Producto $Producto
 */
class CartaCategoriasProducto extends AppModel {


    public $belongsTo = array(

        'CartaCategoria' => array(
            'className'    => 'CartaCategoria',
            'foreignKey'   => 'id_carta_categoria'
        ),
        'Producto' => array(
            'className'    => 'Producto',
            'foreignKey'   => 'id_producto',
        )

    );

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasAndBelongsToMany associations
 *
 * @var array

	public $hasAndBelongsToMany = array(
		'Producto' => array(
			'className' => 'Producto',
			'joinTable' => 'carta_categorias_productos',
			'foreignKey' => 'carta_categoria_id',
			'associationForeignKey' => 'producto_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);
 */
}
